跳到主要内容

Untitled Note

首先依次输入命令 ifconfig eth0 192.168.100.50 netmask 255.255.255.0 route add default gw 192.168.100.1 ifconfig eth0 up 命令解释:以上三条命令中 192.168.100.50 为您要设置的 IP 地址 (请根据自己的实际情况配置)255.255.255.0 为 IP 的子网掩码 第二条命令中的 IP 为网关 IP 第三条命令,让配置生效

/etc/resolv/conf 设置 DNS 服务器:

输入命令:vim /etc/resolv.conf